<jsp:directive.page contentType="text/html;charset=utf-8" />
<%@ include file="/taglibs.jsp" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<div id="displayTagDiv">
	<div class="large-loading"></div>
	<display:table name="list" class="table table-hover trade" sort="external" requestURI="" id="trade" export="false" >
		<%--<display:setProperty name="basic.show.header" value="true"/> --%>
		<display:column>
			<a href="${ctx}/trade!view.action?trade.id=${trade.id}" target="_blank">
			<c:choose>
			<c:when test="${trade.product.primaryListViewImageUrl==''}">
				<img src="${ctx}/themes/common/images/iobike_noimage.png" class="img-polaroid"/>
			</c:when>
			<c:otherwise>
				<img src="${trade.product.primaryListViewImageUrl}" class="img-polaroid"/>
			</c:otherwise>
			</c:choose>
			</a>
		</display:column>
		<display:column title ="Category">
			${trade.product.primaryCategory.name}
		</display:column>
		<display:column title="Price" sortable="true">
			<h3 class="text-error">${trade.price}￥</h3>
		</display:column>
		<display:column title="Product Name">
			<a class="btn btn-link" href="${ctx}/trade!view.action?trade.id=${trade.id}" target="_blank">${trade.title}</a>
		</display:column>
		<display:column title="User">
			${trade.createdByUserLogin}
			<c:if test="${trade.commercialFlag=='Y'}">
				[商家]
			</c:if>
		</display:column>
		<display:column property="createdDate" sortable="true" title="Date"/>
	</display:table>
</div><%-- end displayTagDiv --%>